#coding=utf-8
import os
file_object = open('thefile.txt')
try:
     all_the_text = file_object.read()
     print all_the_text
     print os.path
finally:
     file_object.close()